<?
$username="if11";
$password="4e3HtHTXGXQC8uas";
$database="if11_maas21";

$eesnimi=$_POST['eesnimi'];
$perenimi=$_POST['perenimi'];
$telefon=$_POST['telefon'];
$aadress=$_POST['aadress'];
$synnikp=$_POST['synnikp'];
$epost=$_POST['epost'];
$kasutajaid=$_POST['id'];

mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$query = "INSERT INTO isik VALUES ('','$eesnimi','$perenimi','$telefon','$aadress','$synnikp','$epost','$id')";
mysql_query($query);

mysql_close();
header("Location: ../index.html")
?>

<html>
<head>

</head>
<body>
<h2>Isik sisestatud.</h2>
</body>

</html>